Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reset I2S peripheral for analog microphone. #257

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from
Open

Conversation

phonec
Copy link

@phonec phonec commented Dec 2, 2022

Solving the analog microphone problem as we reset entire I2S peripheral, may which it may be in an indeterminate state after a soft reset, in which the microphone does not work.

This variant of peripheral reset, using the register write sequence as in the bootloader_random_disable function of the esp-idf bootloader_support component, gave excellent results after many hours of testing with a cyclic soft reset.

Remove additional delay to avoid an indeterminate state.
Better option solving the problem as we reset entire I2S peripheral, may which it may be in an indeterminate state after a soft reset, in which the analog microphone does not work.
Add an required includes
@phonec
Copy link
Author

phonec commented Dec 2, 2022

Please squash three commits

@softhack007 softhack007 self-requested a review December 4, 2022 12:50
@softhack007 softhack007 linked an issue Dec 4, 2022 that may be closed by this pull request
1 task
@softhack007
Copy link
Collaborator

softhack007 commented Dec 19, 2022

Thanks for your contribution, and for the research + testing. I will come back to this PR in the next few days.

Would it be OK if I make a few "maintainer edits" in your repo branch before merging? Basically I think the reset code should be moved into a separate method, so we can later make this optional and add settings to enable your hard reset code.
I think it's easier that I simply do it, instead of making lots of words to explain how I like to have it. It will still work the same in your branch, as we would add UI settings support after merging. OK for you?

@phonec
Copy link
Author

phonec commented Dec 24, 2022

Great, it will be even better, I agree to a separate method and including it in the config. Please do it.

@softhack007 softhack007 added this to the next feature release milestone Jun 25, 2023
@anubisg1
Copy link

is this still alive/required?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

analog (Max 4466) Mic sometimes won't work in 13.2
3 participants